var idata = {};
idata.init = function() {
};
idata.changeActive = function(id) {
    ajax({
        service: 'cpservice/idata/changeactive.json',
        data: {id: id},
        loading: false,
        done: function(resp) {
            if (resp.success) {
                location.reload();
            } else {
                popup.msg(resp.message);
            }
        }
    });
};